package ZhengShu;
import  java.util.Arrays;
public class ZhengShu {
        public static void main(String[] args) {
            String s="A123X456Y7A，302ATB567BC";
              String[] nums =s.split("\\D+");//正则表达式，非数字字符匹配
            System.out.println(Arrays.toString(nums));
            String t = s.replaceAll("\\D+"," ");
            System.out.println(t.trim());
    }

}
